package com.derbysoft.synxisadapter.commons.repository.impl;

import com.derbysoft.core.utils.DateTimeUtils;
import com.derbysoft.synxisadapter.commons.model.Reservation;
import org.apache.commons.lang.StringUtils;

import java.util.Date;

/**
 * User: jason
 * Date: 2013-01-25
 */
public class ReservationCondition {
    private static final int ONE_WEEK = -7;
    private String hotelId;
    private String ersp;
    private String resNumber;
    private Reservation.Status status;
    private Date after = DateTimeUtils.offsetDays(ONE_WEEK);
    private Date before = new Date();


    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }

    public String getErsp() {
        return ersp;
    }

    public void setErsp(String ersp) {
        this.ersp = StringUtils.trimToNull(ersp);
    }

    public String getResNumber() {
        return resNumber;
    }

    public void setResNumber(String resNumber) {
        this.resNumber = StringUtils.trimToNull(resNumber);
    }

    public Reservation.Status getStatus() {
        return status;
    }

    public void setStatus(Reservation.Status status) {
        this.status = status;
    }

    public Date getAfter() {
        return after;
    }

    public void setAfter(Date after) {
        this.after = after;
    }

    public Date getBefore() {
        return before;
    }

    public void setBefore(Date before) {
        this.before = before;
    }
}
